package com.chtwm.yfsb.wangyi.controller;

import com.chtwm.yfsb.wangyi.model.Student;
import com.chtwm.yfsb.wangyi.model.User;
import com.chtwm.yfsb.wangyi.service.customer.StudentService;
import com.chtwm.yfsb.wangyi.service.system.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by zl on 2015/8/27.
 */
@Controller
public class StudentController {

    private Logger logger = LoggerFactory.getLogger(StudentController.class);

    @Autowired
    private StudentService studentService;

    @RequestMapping("/getStudentInfo")
    @ResponseBody
    public List<Student> getUserInfo() {
        return studentService.findStudentInfo();
    }
}
